#include "ros/ros.h"
#include "fyt_msg/CameraParam.h"
#include "sensor_msgs/Image.h"
#include "cv_bridge/cv_bridge.h"
#include "image_transport/image_transport.h"
#include "opencv2/opencv.hpp"
#include "std_msgs/String.h"

void imgCallBack(const sensor_msgs::ImageConstPtr &msg){
    cv::Mat src=cv_bridge::toCvShare(msg,"bgr8")->image;
    cv::imshow("src",src);
    // std::cout<< msg->height;
    
    cv::waitKey(1);
}

int main(int argc,char **argv){
    ros::init(argc,argv,"test_image_catcher_node");
    ros::NodeHandle n;

    ros::Subscriber sub_img=n.subscribe("raw_img",10,imgCallBack);
    ros::spin();
}